package com.lzy.product.apis.impl;

import com.lzy.product.apis.AgentProtocolCommissionServiceApi;
import com.lzy.product.dtos.agent.AgentProtocolCommissionDto;
import com.lzy.product.service.AgentProtocolCommissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by WIN7 on 2018/04/14.
 */
@Service
public class AgentProtocolCommiessionServiceApiImpl implements AgentProtocolCommissionServiceApi {

    @Autowired
    AgentProtocolCommissionService agentProtocolCommissionService;

    @Override
    public Long insert(AgentProtocolCommissionDto dto) {
        return agentProtocolCommissionService.insert(dto);
    }

    @Override
    public Boolean update(AgentProtocolCommissionDto dto) {
        return agentProtocolCommissionService.update(dto);
    }

    @Override
    public Boolean delete(Long id) {
        return agentProtocolCommissionService.delete(id);
    }

    @Override
    public Boolean remove(Long id) {
        return agentProtocolCommissionService.remove(id);
    }

    @Override
    public AgentProtocolCommissionDto findById(Long id) {
        return agentProtocolCommissionService.findById(id);
    }

    @Override
    public List<AgentProtocolCommissionDto> query(AgentProtocolCommissionDto dto) {
        return agentProtocolCommissionService.query(dto);
    }

    @Override
    public List<AgentProtocolCommissionDto> selectByProtocolId(Long protocolId) {
        return agentProtocolCommissionService.selectByProtocolId(protocolId);
    }

    @Override
    public Boolean deleteByProtocolId(Long protocolId) {
        return agentProtocolCommissionService.deleteByProtocolId(protocolId);
    }

    @Override
    public List<AgentProtocolCommissionDto> selectByProtocolIdAndSystemId(Long protocolId, Long systemId,Integer isFirst) {
        return agentProtocolCommissionService.selectByProtocolIdAndSystemId(protocolId, systemId,isFirst);
    }

    @Override
    public AgentProtocolCommissionDto selectByProtocolIdAndSystemIdAndPromoteId(Long protocolId, Long systemId, Long PromoteId) {
        return agentProtocolCommissionService.selectByProtocolIdAndSystemIdAndPromoteId(protocolId, systemId,protocolId);
    }

}
